home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / Rubberview / Rubber.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-19  |  4.1 KB  |  136 lines

  1. /* Rubber.c generated from Rubber.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "Rubber.psw"
  9. /* 
  10.     Written by Slugg Jello, 
  11.     Mouthing Flowers
  12.     152 20th Ave. #1
  13.     Seattle, WA. 98112
  14.     slugg@mouthers.nwnexus.wa.com
  15. */
  16. #line 17 "Rubber.c"
  17. void PSWInitRubberband( void )
  18. {
  19.   typedef struct {
  20.     unsigned char tokenType;
  21.     unsigned char topLevelCount;
  22.     unsigned short nBytes;
  23.  
  24.     DPSBinObjGeneric obj0;
  25.     DPSBinObjGeneric obj1;
  26.     DPSBinObjGeneric obj2;
  27.     DPSBinObjGeneric obj3;
  28.     char obj4[17];
  29.     char obj5[16];
  30.     } _dpsQ;
  31.   static const _dpsQ _dpsF = {
  32.     DPS_DEF_TOKENTYPE, 4, 69,
  33.     {DPS_EXEC|DPS_NAME, 0, 16, 49},    /* windowPackage1.0 */
  34.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 13},    /* begin */
  35.     {DPS_EXEC|DPS_NAME, 0, 17, 32},    /* ensureEdgeWindows */
  36.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 57},    /* end */
  37.     {'e','n','s','u','r','e','E','d','g','e','W','i','n','d','o','w','s'},
  38.     {'w','i','n','d','o','w','P','a','c','k','a','g','e','1','.','0'},
  39.     }; /* _dpsQ */
  40.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  41.   char pad[3];
  42.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,69);
  43.   if (0) *pad = 0;    /* quiets compiler warnings */
  44. }
  45. #line 14 "Rubber.psw"
  46.  
  47. #line 48 "Rubber.c"
  48. void PSWPositionRect(const float coords[])
  49. {
  50.   typedef struct {
  51.     unsigned char tokenType;
  52.     unsigned char topLevelCount;
  53.     unsigned short nBytes;
  54.  
  55.     DPSBinObjGeneric obj0;
  56.     DPSBinObjGeneric obj1;
  57.     DPSBinObjGeneric obj2;
  58.     DPSBinObjGeneric obj3;
  59.     DPSBinObjGeneric obj4;
  60.     } _dpsQ;
  61.  
  62.   typedef struct {
  63.     char obj5[16];
  64.     char obj6[16];
  65.     } _dpsQ1;
  66.   static const _dpsQ _dpsF = {
  67.     DPS_DEF_TOKENTYPE, 5, 204,
  68.     {DPS_EXEC|DPS_NAME, 0, 16, 184},    /* windowPackage1.0 */
  69.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 13},    /* begin */
  70.     {DPS_LITERAL|DPS_ARRAY, 0, 16, 40},    /* param[const]: coords */
  71.     {DPS_EXEC|DPS_NAME, 0, 16, 168},    /* placeEdgeWindows */
  72.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 57},    /* end */
  73.     }; /* _dpsQ */
  74.   static const _dpsQ1 _dpsF1 = {
  75.     {'p','l','a','c','e','E','d','g','e','W','i','n','d','o','w','s'},
  76.     {'w','i','n','d','o','w','P','a','c','k','a','g','e','1','.','0'},
  77.     }; /* _dpsQ1 */
  78.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  79.   char pad[3];
  80.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
  81.   DPSWriteTypedObjectArray(_dpsCurCtxt, dps_tFloat, (char *)coords, 16);
  82.   DPSWriteStringChars(_dpsCurCtxt,(char *) &_dpsF1,32);
  83.   if (0) *pad = 0;    /* quiets compiler warnings */
  84. }
  85. #line 20 "Rubber.psw"
  86.  
  87. #line 88 "Rubber.c"
  88. void PSWMakeVisible(int bIsVisible)
  89. {
  90.   typedef struct {
  91.     unsigned char tokenType;
  92.     unsigned char topLevelCount;
  93.     unsigned short nBytes;
  94.  
  95.     DPSBinObjGeneric obj0;
  96.     DPSBinObjGeneric obj1;
  97.     DPSBinObjGeneric obj2;
  98.     DPSBinObjGeneric obj3;
  99.     DPSBinObjGeneric obj4;
  100.     DPSBinObjGeneric obj5;
  101.     DPSBinObjGeneric obj6;
  102.     DPSBinObjGeneric obj7;
  103.     DPSBinObjGeneric obj8;
  104.     char obj9[15];
  105.     char obj10[15];
  106.     char obj11[16];
  107.     } _dpsQ;
  108.   static const _dpsQ _dpsStat = {
  109.     DPS_DEF_TOKENTYPE, 7, 122,
  110.     {DPS_EXEC|DPS_NAME, 0, 16, 102},    /* windowPackage1.0 */
  111.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 13},    /* begin */
  112.     {DPS_LITERAL|DPS_BOOL, 0, 0, 0},    /* param: bIsVisible */
  113.     {DPS_EXEC|DPS_ARRAY, 0, 1, 64},
  114.     {DPS_EXEC|DPS_ARRAY, 0, 1, 56},
  115.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 85},    /* ifelse */
  116.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 57},    /* end */
  117.     {DPS_EXEC|DPS_NAME, 0, 15, 87},    /* hideEdgeWindows */
  118.     {DPS_EXEC|DPS_NAME, 0, 15, 72},    /* showEdgeWindows */
  119.     {'s','h','o','w','E','d','g','e','W','i','n','d','o','w','s'},
  120.     {'h','i','d','e','E','d','g','e','W','i','n','d','o','w','s'},
  121.     {'w','i','n','d','o','w','P','a','c','k','a','g','e','1','.','0'},
  122.     }; /* _dpsQ */
  123.   _dpsQ _dpsF;    /* local copy  */
  124.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  125.   char pad[3];
  126.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  127.   _dpsF = _dpsStat;    /* assign automatic variable */
  128.  
  129.   _dpsP[2].val.booleanVal = (long) (0 != bIsVisible);
  130.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,122);
  131.   if (0) *pad = 0;    /* quiets compiler warnings */
  132. }
  133. #line 26 "Rubber.psw"
  134.  
  135.  
  136.